package reflection;

import java.util.Scanner;

public class ReflectionTest {
public static void main(String[] args){
	String name;
	if(args.length>0){
		name=args[0];
	}
	else{
		Scanner in = new Scanner(System.in);
		System.out.println("calss name");
		name=in.next();
	}
	try{
		Class cl=Class.forName(name);
		Class supercl=cl.getSuperclass();
		System.out.print("class " +name);
	}catch(ClassNotFoundException e){
		e.printStackTrace();
	}
	System.exit(0);
}
}
